package com.zdft.promotion.asyn.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@KeySequence("SEQ_MDM_PULL_MESSAGE")//类注解
@TableName("MDM_PULL_MESSAGE")
public class PullMessageBean {

    @TableId(value = "ID", type = IdType.INPUT)
    private Integer id;

    private String refrenceId;

    /**
     * type 100-150客户主档
     */
    private Integer type;

    private Integer operateType;

    private Integer status;

    private String createUser;

    private Date createTime;

    private String updateUser;

    private Date updateTime;

    private String erroMessage;

    public PullMessageBean() {
    }

    public PullMessageBean(String refrenceId, Integer type, Integer operateType, String erroMessage) {
        super();
        this.refrenceId = refrenceId;
        this.type = type;
        this.operateType = operateType;
        if (erroMessage != null && erroMessage.length() > 500) {
            this.erroMessage = erroMessage.substring(0, 500);
        } else {
            this.erroMessage = erroMessage;
        }
        this.status = 2;
    }

}